#ifndef ATR_H_
#define ATR_H_

#include "recbase.h"
#include "rectype.h"
#include "stdffield.h"
#include <string>
#include <vector>

using namespace std;
using namespace opsrc::stdf;

namespace opsrc 
{
    namespace stdf
    {
        class Atr : public RecBase
        {
            enum AtrFeildPos{MOD_TIM=0, CMD_LINE=4};
        public:
            Atr(stdf_rec stdfrec,  int reclen, std::ios::pos_type fileRecFirstBytePosition, int orderindex, endian e, char* buf);
            ~ Atr();

            StdfField<long> getModTime() const;
            void setModTime(StdfField<long> value);

            StdfField<string> getCmdLine() const;
            void setCmdLine(StdfField<string> cmdline);
            void readFields(char *buf);

        protected:
            Atr();

        private:
            StdfField<long> mod_tim;
            StdfField<string> cmd_lin;
            endian en;
            bool decodeFields;
        };

    }   // namespace stdf
}  // namespace opsrc

#endif /*ATR_H_*/
